package chapter02;

public class Example27 {
    public static void main(String[] args) {
        int[] arr = { 1 , 2 , 3 , 4 , 5 };//定义数组
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);//通过索引访问元素
        }
    }
}
